package com.miao.websecurity.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miao.websecurity.dao.RoleApiDao;
import com.miao.websecurity.entity.RoleApi;
import com.miao.websecurity.service.RoleApiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 角色与api中间表(RoleApi)表服务实现类
 *
 * @author MiaoWenqing
 * @since 2021-01-16 15:41:08
 */
@Service("roleApiService")
public class RoleApiServiceImpl extends ServiceImpl<RoleApiDao, RoleApi> implements RoleApiService {

    @Resource
   private  RoleApiDao roleApiDao;


    @Override
    public List<String> getApiByAdminId(int roleId) {
       return this.roleApiDao.getApiByAdminId(roleId);

    }
}